﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="addbanner.ascx.cs" Inherits="controls_admin_addbanner" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
    
<script type="text/javascript"> 
    function Upload()
    {
        document.getElementById('<%= fuTaiTaiTin.ClientID  %>').click();
    }  
    function Change()
    {
        document.getElementById("field-up_fake").value = document.getElementById('<%= fuTaiTaiTin.ClientID  %>').value;
    }
</script>    
 <script type="text/javascript">
    jQuery(function () {
        jQuery('#<%=datepicker.ClientID %>').datepicker();
    });
</script>

   
<div id="content">       
    <!-- new box --> 
    	<div class="box corners shadow">
            <div class="box-header">
                <img src="../images/admin/banner.png" /><h2>Thêm banner</h2>
                <div class="box-header-ctrls">	
                	<a href="javascript:void(null);" title="" class="close"><!-- --></a>
                </div>
            </div>
            <div class="box-content" id="pages-2"> 
                <div class="inbox-sf" style="width:47%; float:left"><h2>Thêm vị trí banner - quảng cáo</h2></div>
                <div class="inbox-sf" style="width:48%; margin-left:50.2%"><h2>Thêm banner - quảng cáo</h2></div>                               
                <div class="edfloat">                                                          
                    <div style="height:410px;">                        
                        <div class="pages-admod-box-2" style="position:relative; height:380px; width:47%; margin-left:0px;">
                            <table id="ViTriBanner" runat="server">
                                <tr>
                                    <td>
                                        <label for="select-save">Tên vị trí</label>
                                        <asp:TextBox ID="txtTenViTriBannerQuangCao"  runat="server" class="input-1"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="cbTrangThai" runat="server" style="margin-top:20px;" />&nbsp;Hiển thị                                       
                                    </td>
                                </tr>                                                                
                                <tr>
                                    <td colspan="2">
                                        <br />                                                                  
                                        <div class="submit-box">
                                            <asp:Button ID="btnLuuViTriBannerQuangCao" runat="server" Text="Lưu" 
                                            class="inbox-sf-adduser-btn tip" title="Lưu thông tin" onclick="btnLuuViTriBannerQuangCao_Click"/>                                                                                                    
                                            <input type="reset" name="reset" value="Nhập lại" class="inbox-sf-adduser-btn tip" title="Nhập lại thông tin" />                                        
                                        </div>  
                                    </td>                                    
                                </tr>
                            </table>                                                                                                                                                                                                                                                                         
                        </div>
                    </div> 
                    <!-- box 2 -->                   	                    
                    <div class="pages-admod-box-2" style="width:47%; height:380px">                        
                        <table id="Banner" runat="server">
                                <tr>
                                    <td>
                                        <label for="select-save">Tên banner - quảng cáo</label>
                                        <asp:TextBox ID="txtTenBannerQuangCao"  runat="server" class="input-1"></asp:TextBox>
                                    </td>                                    
                                </tr>
                                <tr>
                                    <td>
                                        <label for="select-save">Vị trí đặt banner - quảng cáo</label>
                                        <asp:DropDownList ID="ddlViTriDatBanner" runat="server" class="select-1">                                            
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>                                   
                                        <label for="select-save">Ngày đăng</label>                                       
                                        <asp:TextBox runat="server" ID="datepicker" CssClass="input-1" />                                                                                                                       
                                    </td>                                    
                                </tr>
                                <tr>
                                    <td>
                                        <label for="select-save">Tải tập tin</label>
                                        <div class="fileinputs" style="margin-bottom:20px; margin-top:10px">
                                            <asp:FileUpload ID="fuTaiTaiTin" onchange="Change();" CssClass="file"  runat="server" title="Upload" size="40" name="imgfile" style="opacity: 0;"/>
                                            <div class="fakefile">
                                                <input id="field-up_fake" type="text" value="">                                                                                               
                                                <asp:Button ID="btnTaiLen" CssClass="button_button" OnClientClick="Upload();"  runat="server" Text="Tải lên" />                                                
                                            </div>                                                                                                              
                                        </div>
                                    </td>
                                </tr>
                                <tr>                                    
                                    <td>
                                       <div class="form-upload-msg-1" style="margin-top:-10px;">Dung lượng tập tin tối đa 1Mb</div>
                                       <div runat="server" id="msg_warning" class="form-msg-warning-advanced" style="float:left; margin-left:0px; margin-bottom:20px; width:200px;">Chấp nhận jpg, jpeg, png, gif và swf.</div> 
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <label for="select-save">Link liên kết</label>
                                        <asp:TextBox ID="txtLinkLienKet" runat="server" class="input-1"></asp:TextBox>
                                        <asp:CheckBox ID="cbTrangThaiBanner" runat="server" /> 
                                        <asp:Label ID="lbTrangThaiBanner" runat="server" Text="Hiển thị"></asp:Label>
                                    </td>                                    
                                </tr>
                                
                                <tr>
                                    <td colspan="2">
                                        <div class="submit-box">
                                            <asp:Button ID="btnLuuBannerQuangCao" runat="server" Text="Lưu" 
                                            class="inbox-sf-adduser-btn tip" title="Lưu thông tin" 
                                                onclick="btnLuuBannerQuangCao_Click"/>
                                            <input type="reset" name="reset" class="inbox-sf-adduser-btn tip" title="Nhập lại thông tin" value="Nhập lại"/>                                            
                                        </div>
                                    </td>
                                </tr>                                
                            </table>
                    </div>                                        
        	    </div> 
        	    
        	    <div class="inbox-sf"> 
        	        <div class="bulk-actions">
        	            <asp:Button ID="btnQuayLai" runat="server" Text="Quay lại" 
                            class="inbox-sf-adduser-btn tip" title="Trở về danh sách" onclick="btnQuayLai_Click" 
                            />
                    </div>
        	    </div>       	            	     
            </div>                                                                    
        </div>                                                           
</div>
